cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Capstone .viz.createDashboard[] tests failing

Coleslaw
New Contributor II

Hi there,

I have made necessary changes to the sensor table on disk as well as making some code changes the viz.getModSensor function in order to get the timing halved. Testing it in scratch before and after validates this, however when I save my changes to viz.getModSensor and run the testSection[`exercise2] I get 2 fails. I have verified that the before and after results also match, which is confusing. Would appreciate any guidance on this please. 

quizItem    success description                                                                                                                              error           
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
exercise2.1 Pass    "check if race day in process"                                                                                                           ""              
exercise2.1 Pass    "have correct schema"                                                                                                                    ""              
exercise2.2 Pass    "check if lap table in process"                                                                                                          ""              
exercise2.2 Pass    "only contains data for 2nd Jan 2020"                                                                                                    ""              
exercise2.2 Pass    "contain all columns for 2nd Jan 2020"                                                                                                   ""              
exercise2.3 Pass    "not allowed to use select keyword"                                                                                                      ""              
exercise2.3 Pass    "return correct values for temp"                                                                                                         ""              
exercise2.3 Pass    "return correct values for wind"                                                                                                         ""              
exercise2.3 Pass    "return correct values for all"                                                                                                          ""              
exercise2.4 Pass    "when given the wrong option return error \"<mysensor> is not a valid option for mysensor - valid options include `temp`tyre`wind`all\"" ""              
exercise2.5 Fail    "func should return same result as before"                                                                                               ".test.table2.5"
exercise2.5 Fail    ".viz.createDashboard should run in half the time"    

 

1 ACCEPTED SOLUTION

megan_mcp
Moderator Moderator
Moderator

2.5 Test case

Spoiler
feature exercise2.5
should func should return same result as before
expect
.test.table2.5~.viz.createDashboard[]
should .viz.createDashboard should run in half the time expect
0.5>((system"t:5 .viz.createDashboard[]")%5)%.test.time2.5\
  

 W.r.t pass having now becoming a fail I would advise logging out and restarting a new session. And then running all your changes from scratch, as its a performance based one sometime other changes can impact so testing is a little more fragile.

View solution in original post

4 REPLIES 4

megan_mcp
Moderator Moderator
Moderator

Hi @Coleslaw !

Here is a similar post that was asked on the community. Solved: Advanced Capstone quizzes 2.4.2 and 2.5.1 - KX Community - 11053

If your still having problems, feel free to reach out!

Megan 🙂

Coleslaw
New Contributor II

Hi @megan_mcp 

Thanks for the reply but I'm unable to access that link. Any chance you can paste it in here please?

Regards,

Paul

megan_mcp
Moderator Moderator
Moderator

2.5 Test case

Spoiler
feature exercise2.5
should func should return same result as before
expect
.test.table2.5~.viz.createDashboard[]
should .viz.createDashboard should run in half the time expect
0.5>((system"t:5 .viz.createDashboard[]")%5)%.test.time2.5\
  

 W.r.t pass having now becoming a fail I would advise logging out and restarting a new session. And then running all your changes from scratch, as its a performance based one sometime other changes can impact so testing is a little more fragile.