Basie Blog

A Lightweight Software Development Portal in Django

Basie’s test harness is in the clear!

without comments

Having been chasing the broken test suite since the beginning of the term, we’ve finally tracked down that the data left over after some interactive doctest tests was causing a lot of problems. Zuzel has put together a patch that would explicitly clear stagnant data.


>>> call_command('flush', verbosity=0, interactive=False)

Now the tests set up and have only their own data, and we avoid a cascade of problems resulting from “IntegrityError: column slug is not unique” type of errors.

The Basie team is proud to announce that all of the tests now pass.

We are quite excited about that. Among the many reasons, this will allow to easily regression test new code commits.

Ran 279 tests in 739.022s
OK

(no failures!)

Now that we no longer have errors and failures, and the test suite has seen quite a few changes over the last couple of weeks, we can also revisit our state of test coverage. I’ve left out apps with 90+% coverage, and colour-coded the rest.

apps.a3c 59 53 89% 83, 100-107
apps.a3c.api 114 92 80% 29-30, 46, 57, 61, 65-70, 91, 103, 107, 111-116, 121, 138, 156, 166
apps.a3c.views 34 25 73% 23, 28-29, 33-34, 40-41, 46-47
apps.about.views 12 7 58% 5, 8, 11, 14, 17
apps.audit.models 153 111 72% 70-71, 77-89, 155-156, 165, 210-213, 226-234, 239-260, 264-276
apps.chatlog.models 24 21 87% 27, 43-47
apps.chatlog.views 17 7 41% 11-24, 27-34
apps.dash 7 6 85% 11
apps.django_evolution 11 9 81% 3, 6
apps.django_evolution.db.common 120 20 16% 8-11, 14-20, 23-26, 29-30, 33-38, 41-82, 85-90, 94-98, 101-102, 105, 108-128, 131-136, 139-143, 146, 149-154, 157-166
apps.django_evolution.db.mysql 58 10 17% 8-42, 45-50, 53-63, 67-69, 72-81, 84-89
apps.django_evolution.db.postgresql 9 4 44% 7-13
apps.django_evolution.db.sqlite3 149 19 12% 10-25, 28-35, 38-45, 48-60, 63-79, 83, 86-99, 102-134, 137-159, 162-175, 178, 181, 184, 187-200
apps.django_evolution.diff 117 45 38% 10-11, 15-17, 20, 23, 34-38, 71, 74, 84-85, 90-93, 99-104, 113-122, 131, 147, 151-167, 171-205
apps.django_evolution.evolve 45 22 48% 19, 36-60
apps.django_evolution.management 62 41 66% 3-4, 30, 39-40, 42-45, 49, 66-68, 73-74, 77-80, 95-98
apps.django_evolution.management.commands.evolve 158 25 15% 6-7, 47-225
apps.django_evolution.models 20 16 80% 14-16, 27
apps.django_evolution.mutations 308 65 21% 23-34, 45-74, 77, 80-86, 89, 92, 95, 107-109, 112, 121-123, 127, 134, 143, 147-149, 152, 156-159, 163, 168-169, 172, 175-199, 202-218, 222-226, 229-237, 240-255, 258-261, 264-275, 278-295, 300-304, 307-314, 317-335, 338-370, 374-377, 380-392, 396-407, 411-432, 436, 439, 442-444, 447-461, 465, 468, 471-475
apps.django_evolution.utils 13 3 23% 5-9, 16-22
apps.django_nose.nose_runner 43 11 25% 33-42, 46-48, 52-54, 58-83
apps.errors.log 22 13 59% 14, 28-35
apps.events.feed 25 15 60% 14-15, 18-22, 26, 29, 32-33, 36
apps.ircbot.plugins.BasieLogger.config 6 4 66% 9-10
apps.linkmedia.management.commands.linkmedia 35 9 25% 31-62
apps.lists 36 27 75% 20-23, 25, 30-32, 49-50
apps.mail.api 45 40 88% 15, 32, 43, 50, 60
apps.mail.bll 52 42 80% 18, 24-27, 33-34, 47, 56, 64
apps.mail.feed 23 15 65% 14-15, 18, 21, 24, 27-28, 31
apps.mail.views 38 27 71% 20, 43, 46, 53-60
apps.manage.views 48 37 77% 18, 50, 55, 70, 75, 84-85, 89-90, 94-95
apps.milestones.api 41 11 26% 10-15, 20-26, 31-36, 40-45, 50-54, 59-62
apps.milestones.bll 37 9 24% 9-15, 20-23, 27-30, 34, 39-50, 55-61
apps.milestones.forms 12 10 83% 15-16
apps.milestones.views 34 12 35% 16-39, 44-52
apps.restapi.responder 41 28 68% 48, 74-85
apps.search 15 11 73% 14-17
apps.search.index 16 10 62% 40-45, 50-51
apps.search.searching 33 28 84% 33-39, 54-57
apps.tickets.api 41 11 26% 11-16, 21-28, 35-40, 44-49, 54-59, 64-67
apps.tickets.bll 48 13 27% 9-18, 23-26, 31-32, 40-57, 62-68, 71-77
apps.tickets.dash_data 30 26 86% 12-15
apps.tickets.feed 23 15 65% 14-15, 18, 21, 24, 27-28, 31
apps.util 27 21 77% 23, 41-42, 69-71
apps.vcs.dash_data 17 15 88% 19-20
apps.vcs.diff_match_patch 947 144 15% 93, 143-216, 231-272, 282-286, 299-392, 405-437, 450-482, 537, 554-621, 630-669, 680-769, 778-846, 875-892, 901, 937-943, 946-952, 957, 970-989, 1000-1015, 1026-1030, 1041-1045, 1059-1070, 1086-1124, 1139-1152, 1167-1259, 1270-1275, 1287-1313, 1327-1395, 1408-1468, 1480-1525, 1534-1599, 1610-1613, 1628-1690, 1700-1704, 1714-1738
apps.vcs.forms 19 9 47% 13-17, 20-24
apps.vcs.management.commands.update_authz 7 5 71% 10-11
apps.vcs.models 90 79 87% 46, 66-72, 84-85, 100, 116-117, 137-139
apps.vcs.svn_backend 229 119 51% 21-22, 48-64, 69-71, 76-84, 90-94, 99-105, 124, 131-135, 139-151, 157-178, 182-187, 205-228, 255, 258, 264, 278, 284, 287, 305-309, 318, 325-334, 341, 345-353, 356, 359-363, 366, 383, 419
apps.vcs.views 153 129 84% 26-27, 74, 95, 100, 119-120, 123-129, 132, 144-147, 152, 169-170, 186-187, 191, 216, 337
apps.wadofstuff.django.serializers.python 63 43 68% 56, 81-83, 89-97, 107-112, 135-140
apps.wiki.feed 23 15 65% 14-15, 18, 21, 24, 27-28, 31
apps.wiki.macros 26 21 80% 23-26, 31-33
apps.wiki.markup.basie_creole2html 50 44 88% 26, 29, 40-41, 50-52
apps.wiki.markup.links 34 30 88% 35, 49, 60, 64
apps.wiki.markup.wikicreole.creole 211 130 61% 79, 161-172, 208-212, 217-218, 221-245, 250-251, 263, 270, 275-296, 299-307, 316-317, 322-326, 329-333, 336-337, 340-342
apps.wiki.markup.wikicreole.creole2html 91 51 56% 71-72, 89, 95, 98, 101, 104, 107, 110, 113, 116, 119, 126, 129-141, 145-154, 158, 161, 164, 169, 188-190
apps.wiki.utils 12 10 83% 20-21
apps.wiki.views 94 84 89% 66-67, 75, 79-80, 105, 111, 165-198

Written by tony

November 9th, 2009 at 10:32 pm

Posted in Uncategorized

Leave a Reply