Commit graph

457 commits

Author SHA1 Message Date
Erik Ogenvik
2f55d5d82b Fixed various compile issues after rebase. 2016-06-26 21:50:10 +02:00
Erik Ogenvik
9cf67cb412 Added tests for Mode and ModeSpec properties. 2016-06-26 20:17:18 +02:00
Erik Ogenvik
1c69b3aae6 Use camel casing for tests.
This makes it much easier to find them in various editors.
2016-06-26 20:17:18 +02:00
Erik Ogenvik
d2e37de29b Provide better naming of tests.
Easier to find in IDEs.
2016-06-26 20:17:18 +02:00
Erik Ogenvik
4d4cdbef23 Fixed tests after transforms property. 2016-06-26 20:13:31 +02:00
Erik Ogenvik
c981f35d0d Added integration tests for Thing.
Which currently mainly performs visibility calculation
tests.
2016-06-26 13:18:14 +02:00
Erik Ogenvik
e6f645685e Ignore warnings in tests.
When writing tests we're often sloppy, and don't care about stuff
like initialization order etc..
2016-06-22 16:58:14 +02:00
Erik Ogenvik
5432efab1e Fixed tests. 2016-06-09 22:40:05 +02:00
Erik Ogenvik
16cc5778df Fixed broken tests. 2015-12-19 15:28:29 +01:00
Erik Ogenvik
74bb437540 Fixed tests. 2015-05-24 11:25:08 +02:00
Erik Ogenvik
f5dae1fba7 Rename Teleport* to Possess*
So that the functionality can be used in more general situations.
2015-05-24 11:25:06 +02:00
Yaroslav Taben
b7c45dd8d5 Fix Makefile.am settings for newly added tests. 2015-05-10 18:05:41 -07:00
Yaroslav Taben
951457e0bd Add parser and providers tests into the build.
This won't build until stubs are included and
errors are fixed.
2015-05-10 18:05:13 -07:00
Erik Ogenvik
8ce91c656f Merge remote-tracking branch 'ytaben/entity_filter' 2015-04-18 22:25:27 +02:00
Erik Ogenvik
ea62550af4 Added integration test for suspended property. 2014-12-30 13:10:50 +01:00
Erik Ogenvik
be18889fff Workaround for issue with pthread.
For some reason, when using the "gold" linker, pthread isn't dynamically
linked to as it should. The result is a segfault in std::locale at
startup.
By including an object which makes a side effect free call to a pthread
function we're making sure that pthread gets dynamically linked as it
should.
This might break on systems that aren't using pthreads, but I'm
currently just focusing on getting the tests not to segfault.
2014-09-30 23:36:10 +02:00
Erik Ogenvik
d88adb64e8 Updated tests.
These tests are truly horrible. You change one thing and then spend
three days just updating stubs in tests. The only possible solution is
to move more and more into stub classes.
2014-09-30 23:15:29 +02:00
Yaroslav Taben
ac1c7c5dae Added PyFilter tests 2014-08-05 21:52:03 -04:00
Yaroslav Taben
05ae38a6cb Added a separate archive for EntityFilter components in makefiles 2014-07-23 12:46:45 -04:00
Yaroslav Taben
e7255d6495 Added Makefile changes 2014-07-21 19:02:49 -04:00
Erik Ogenvik
d5dbeecdd6 Made tests compile after boost::asio refactor.
Unfortunately I haven't got time to properly implement updated tests for
the new classes, so in some cases I've opted for removing tests. With
more resources available it would be advantageous to implement proper
tests for all of the Comm classes, but that won't be done currently.
2014-02-03 12:19:42 +01:00
Erik Ogenvik
31905f5f93 Removed further references to skstream. 2014-02-02 22:15:39 +01:00
Erik Ogenvik
1a1362031d Removed reference to removed Spawn.cpp. 2014-01-21 21:43:03 +01:00
Erik Ogenvik
c7e33cbb33 Fix broken tests.
It would benefit us greatly if we could use a mocking framework.
2013-11-15 21:39:35 +01:00
Erik Ogenvik
5854f9d25f Fixed broken tests. 2013-11-15 00:16:17 +01:00
Erik Ogenvik
419b4d0342 Added "spawner" property.
When an entity has this property it acts a an spawner entity. At an
interval it checks if there are enough of the specified entities
available, and if not it spawn new ones. This allows for some better
gameplay mechanics.
2013-10-03 13:42:54 +02:00
Erik Ogenvik
7dcb2a9560 Fix and extend tests. 2013-06-03 22:08:15 +02:00
Erik Ogenvik
c7924ed1e2 Add test for setting location data for MemEntity. 2013-06-02 20:14:46 +02:00
Erik Ogenvik
a3671a43b3 Added unit test for suspended prop. 2013-04-01 00:35:58 +02:00
Alistair Riddoch
b4cc611176 Update tests to handle PropertyRuleHandler 2013-02-15 23:19:38 +00:00
Alistair Riddoch
25f37aa2cd Add copy to DecaysProperty and check 2013-02-14 19:32:24 +00:00
Alistair Riddoch
3643266581 Add copy method to BiomassProperty and check 2013-02-14 19:16:29 +00:00
Alistair Riddoch
9fe81568e1 Add required copy method to BurnSpeedProperty 2013-02-14 19:03:08 +00:00
Alistair Riddoch
58985b4a57 Remove obsolete property handler classes 2013-02-14 09:42:23 +00:00
Alistair Riddoch
fe2cbf8fbc Fix memory leak in AreaProperty
The property was not deleting the shape object it owned, but adding the
delete was not enough. When the property is copied, it is necessary to copy
the shape object. In order to verify, add an integration test which
simulates the normal scenario of copying properites, just like in the
StatisticsPropertyintegration test.
2013-01-27 01:34:58 +00:00
Alistair Riddoch
31e92bbf92 Add a framework for testing mind/map interaction 2013-01-24 10:58:12 +00:00
Alistair Riddoch
febc72c555 Add stub integration test for detecting a bug 2013-01-21 19:10:46 +00:00
Alistair Riddoch
38fbb9fc86 Add basic integration tests for other property handlers 2013-01-11 11:58:29 +00:00
Alistair Riddoch
fd0f105f36 Add a minimal integration test for decays property 2013-01-10 23:22:41 +00:00
Alistair Riddoch
37f91066d9 Add basics of rule handler for properties 2013-01-08 23:33:19 +00:00
Alistair Riddoch
24ac14e1ec Add a stub unit test for CorePropertyManager 2013-01-08 19:23:50 +00:00
Alistair Riddoch
09107bf5e2 Add a bunch more testing 2013-01-06 01:30:17 +00:00
Alistair Riddoch
d8e4a81646 Add a test to cover important Property operations 2013-01-05 21:05:59 +00:00
Alistair Riddoch
68e542140e Remove unused test harness from this test 2013-01-03 12:35:24 +00:00
Alistair Riddoch
51af7e98cb Isolate unit test 2013-01-03 12:33:29 +00:00
Alistair Riddoch
cf275d1dd7 Isolate integration test 2013-01-03 12:27:18 +00:00
Alistair Riddoch
c4c0413b45 Copy unit test to integration test 2013-01-03 12:22:50 +00:00
Alistair Riddoch
eafcf67509 Isolate test a bit more. 2012-12-31 00:56:23 +00:00
Alistair Riddoch
44c24e6629 Stub out common 2012-12-29 13:12:43 +00:00
Alistair Riddoch
169a635f74 Merge branch 'master' of github.com:worldforge/cyphesis 2012-12-22 12:21:31 +00:00