Team:HFUT CHINA/Unit Test Result.html

From 2014.igem.org

Revision as of 02:04, 18 October 2014 by Jadmjgp (Talk | contribs)

HFUT_CHINA

Unit Test Result

 

The releases and changes between releases information could be found here

 

 

EclEmma, a code coverage tool, was used to test the coverage of our code. Figure 1 shows the results. The average coverage is 61%. Since there are some functions used to build database, access database, and download data from Registry, these codes were uncovered. However, all other performance functions were tested. The uncovered codes will be tested in other plans.

 

Figure 1 Test coverage of our code

 

 

 

 

The automated unit testing results are listed as follows:

 

Start testing function doRecommendation:

 

Test whether an exception is thrown:

No exception is thrown.

 

Test whether the number of strings in the return valueis the same as expected:

The number is correct.

 

Test whether each string of the return value is the same as expected:

 

Expectation: BBa_B0032|RBS|http://parts.igem.org/Part:BBa_B0032

Result: BBa_B0032|RBS|http://parts.igem.org/Part:BBa_B0032

 

Expectation: BBa_B0034|RBS|http://parts.igem.org/Part:BBa_B0034

Result: BBa_B0034|RBS|http://parts.igem.org/Part:BBa_B0034

 

The results are correct.

 

End testing function doRecommendation.

Start testing function getRelevantBioBricks:

 

Test whether an exception is thrown:

No exception is thrown.

 

Test whether the number of strings in the return valueis the same as expected:

The number is correct.

 

Test whether each string of the return value is the same as expected:

 

Expectation: BBa_J63001|Reporter|http://parts.igem.org/Part:BBa_J63001

Result: BBa_J63001|Reporter|http://parts.igem.org/Part:BBa_J63001

 

Expectation: BBa_K105008|Coding|http://parts.igem.org/Part:BBa_K105008

Result: BBa_K105008|Coding|http://parts.igem.org/Part:BBa_K105008

 

Expectation: BBa_K165005|Coding|http://parts.igem.org/Part:BBa_K165005

Result: BBa_K165005|Coding|http://parts.igem.org/Part:BBa_K165005

 

The results are correct.

 

End testing function getRelevantBioBricks.

Start testing function SearchBioBrick:

 

Test whether an exception is thrown:

No exception is thrown.

 

Test whether the number of strings in the return valueis the same as expected:

The number is correct.

 

Test whether each string of the return value is the same as expected:

 

Expectation: BBa_K1010008|Coding|http://parts.igem.org/Part:BBa_K1010008

Result: BBa_K1010008|Coding|http://parts.igem.org/Part:BBa_K1010008

 

Expectation: BBa_K1017301|Coding|http://parts.igem.org/Part:BBa_K1017301

Result: BBa_K1017301|Coding|http://parts.igem.org/Part:BBa_K1017301

 

Expectation: BBa_K1033204|Plasmid_Backbone|http://parts.igem.org/Part:BBa_K1033204

Result: BBa_K1033204|Plasmid_Backbone|http://parts.igem.org/Part:BBa_K1033204

 

Expectation: BBa_K105007|Protein_Domain|http://parts.igem.org/Part:BBa_K105007

Result: BBa_K105007|Protein_Domain|http://parts.igem.org/Part:BBa_K105007

 

Expectation: BBa_K105009|Reporter|http://parts.igem.org/Part:BBa_K105009

Result: BBa_K105009|Reporter|http://parts.igem.org/Part:BBa_K105009

 

Expectation: BBa_K1051289|Measurement|http://parts.igem.org/Part:BBa_K1051289

Result: BBa_K1051289|Measurement|http://parts.igem.org/Part:BBa_K1051289

 

Expectation: BBa_K1053202|Composite|http://parts.igem.org/Part:BBa_K1053202

Result: BBa_K1053202|Composite|http://parts.igem.org/Part:BBa_K1053202

 

Expectation: BBa_K1053203|Composite|http://parts.igem.org/Part:BBa_K1053203

Result: BBa_K1053203|Composite|http://parts.igem.org/Part:BBa_K1053203

 

Expectation: BBa_K1053204|Composite|http://parts.igem.org/Part:BBa_K1053204

Result: BBa_K1053204|Composite|http://parts.igem.org/Part:BBa_K1053204

 

Expectation: BBa_K1075050|Generator|http://parts.igem.org/Part:BBa_K1075050

Result: BBa_K1075050|Generator|http://parts.igem.org/Part:BBa_K1075050

 

The results are correct.

 

End testing function searchBioBrick.

 

OK (3 tests)