Reading List
The most recent articles from a list of feeds I subscribe to.
Running tests and getting coverage reports on server deployment in SnailLife
Yesterday I added tests to server deployment in my deployServer.sh
script:
echo "Running tests"
cd ../../server/lib
set -e
echo "mode: set" > allcoverage.out
for d in $(go list ./... | grep -v vendor); do
parentdir=`dirname "$d"`
subdir=`basename "$d"`
echo "subdir: " $subdir
if [[ $subdir == "tests" ]]; then
go test -cover -coverpkg=$parentdir -coverprofile=profile.out $d
else
go test -cover -coverprofile=profile.out $d
fi
if [ -f profile.out ]; then
tail -n+2 profile.out >> allcoverage.out
rm profile.out
fi
done
Basically this goes into the root where all of my server packages live. Then for each found package we get the subdirectory name and the full path of the parent directory. If the subdirectory is named “tests” (most of my tests are in packages under the package I’m actually testing), we run go test -cover
with -coverpkg
specified as the parent dir of the test dir. Otherwise we do not specify -coverpkg
because it is in the same directory as the test.
ECAL session notes: Open-Ended Simulations
As before, what follow is a very slightly cleaned up version of the notes I took during the third ISAL summer school session at ECAL 2017. Also as before, note that this is very rough, made while I was reviewing them tonight. Apologies for any typos or other mistakes.
ECAL session notes: Digital Evolution
As before, what follow is a very slightly cleaned up version of the notes I took during the second ISAL summer school session at ECAL 2017. Also as before, note that this is very rough, made while I was reviewing them tonight. Apologies for any typos or other mistakes.
ECAL session notes: Historical and Philosophical Perspectives on Artificial Life
What follow is a very slightly cleaned up version of the notes I took during the first ISAL summer school session at ECAL 2017. Note that this is very rough, I was just reviewing my notes and thought I may as well put them into a post format at the same time to revisit later. Apologies for any typos or other mistakes.
Day 1 of ECAL 2017 - ISAL Summer School
Today was the first day of ECAL (European Conference on Artificial Life) 2017 in Lyon, France and my first year attending. It’s lucky I managed to go this year, because apparently this is the last ECAL! Next time it will be turning into the International Conference on Artificial Life and will be held much farther away (I think it is meant to be held in Japan). Although I am already getting my hopes up to go again, not only for the conference but to visit Japan once more!