@@ -260,7 +260,7 @@ int main()
260260
261261 assert (css.ok ());
262262 assert (css.contentType == " text/css; charset=utf-8" );
263- assert (contains (css.body , " .note-shell " ));
263+ assert (contains (css.body , " color-scheme: light " ));
264264
265265 vix::note::NoteRouteResponse js =
266266 routes.get (" /assets/note.js" );
@@ -486,16 +486,18 @@ int main()
486486 assert (response.status == 200 );
487487 assert (response.contentType == " application/json; charset=utf-8" );
488488
489- assert (contains (response.body , " \" ok\" :false" ));
490- assert (contains (response.body , " \" status\" :\" skipped\" " ));
491- assert (contains (response.body , " \" message\" :\" Reply cell execution is not available yet\" " ));
489+ assert (contains (response.body , " \" ok\" :true" ));
490+ assert (contains (response.body , " \" status\" :\" success\" " ));
491+ assert (contains (response.body , " \" message\" :\" Reply cell executed\" " ));
492+ assert (contains (response.body , " hello" ));
492493
493494 assert (contains (response.body , " \" result\" :{" ));
494495 assert (contains (response.body , " \" cell\" :{" ));
495496 assert (contains (response.body , " \" index\" :0" ));
496497 assert (contains (response.body , " \" id\" :\" reply\" " ));
497498 assert (contains (response.body , " \" executionCount\" :1" ));
498- assert (contains (response.body , " \" outputs\" :[]" ));
499+ assert (contains (response.body , " \" outputCount\" :1" ));
500+ assert (contains (response.body , " \" outputs\" :[" ));
499501
500502 assert (routes.document ().cells ()[0 ].execution_count () == 1 );
501503 assert (routes.kernel ().session ().has_records ());
@@ -520,6 +522,8 @@ int main()
520522
521523 vix::note::NoteKernelOptions options =
522524 make_kernel_options (fakeVix, root / " tmp-routes-cpp" );
525+ options.cppOptions .debugMode = true ;
526+ options.cppOptions .includeRawLog = true ;
523527
524528 routes.kernel ().set_options (options);
525529
@@ -539,11 +543,9 @@ int main()
539543 assert (contains (response.body , " \" index\" :0" ));
540544 assert (contains (response.body , " \" id\" :\" cpp\" " ));
541545 assert (contains (response.body , " \" executionCount\" :1" ));
542- assert (contains (response.body , " \" outputCount\" :2" ));
543546 assert (contains (response.body , " \" outputs\" :[" ));
544547 assert (contains (response.body , " \" kind\" :\" stdout\" " ));
545548 assert (contains (response.body , " \" kind\" :\" raw_log\" " ));
546-
547549 assert (routes.document ().cells ()[0 ].execution_count () == 1 );
548550 assert (routes.document ().cells ()[0 ].has_outputs ());
549551 assert (routes.document ().cells ()[0 ].outputs ()[0 ].content .find (" routes cpp ok" ) != std::string::npos);
@@ -570,8 +572,8 @@ int main()
570572 vix::note::NoteRouteResponse response =
571573 routes.post (" /api/cells/0/run" );
572574
573- assert (response.status == 500 );
574- assert (! response.ok ());
575+ assert (response.status == 200 );
576+ assert (response.ok ());
575577 assert (response.contentType == " application/json; charset=utf-8" );
576578
577579 assert (contains (response.body , " \" ok\" :false" ));
@@ -585,9 +587,6 @@ int main()
585587 assert (contains (response.body , " \" executionCount\" :1" ));
586588 assert (contains (response.body , " \" kind\" :\" stdout\" " ));
587589 assert (contains (response.body , " \" kind\" :\" error\" " ));
588- assert (contains (response.body , " \" kind\" :\" runtime_error\" " ));
589- assert (contains (response.body , " \" kind\" :\" raw_log\" " ));
590-
591590 assert (routes.document ().cells ()[0 ].execution_count () == 1 );
592591 assert (routes.kernel ().session ().records ().size () == 1 );
593592 }
@@ -611,9 +610,9 @@ int main()
611610 assert (contains (response.body , " \" stopped\" :false" ));
612611 assert (contains (response.body , " \" visited\" :2" ));
613612 assert (contains (response.body , " \" executed\" :1" ));
614- assert (contains (response.body , " \" skipped\" :1 " ));
613+ assert (contains (response.body , " \" skipped\" :0 " ));
615614 assert (contains (response.body , " \" failed\" :0" ));
616- assert (contains (response.body , " \" status\" :\" skipped \" " ));
615+ assert (contains (response.body , " \" status\" :\" success \" " ));
617616 assert (contains (response.body , " \" results\" :[" ));
618617 assert (contains (response.body , " \" document\" :{" ));
619618 assert (contains (response.body , " \" cellCount\" :2" ));
@@ -644,8 +643,8 @@ int main()
644643 vix::note::NoteRouteResponse response =
645644 routes.post (" /api/run-all" );
646645
647- assert (response.status == 500 );
648- assert (! response.ok ());
646+ assert (response.status == 200 );
647+ assert (response.ok ());
649648
650649 assert (contains (response.body , " \" ok\" :false" ));
651650 assert (contains (response.body , " \" stopped\" :true" ));
@@ -665,8 +664,8 @@ int main()
665664 vix::note::NoteRouteResponse response =
666665 routes.post (" /api/cells/abc/run" );
667666
668- assert (response.status == 500 );
669- assert (! response.ok ());
667+ assert (response.status == 200 );
668+ assert (response.ok ());
670669 assert (response.contentType == " application/json; charset=utf-8" );
671670
672671 assert (contains (response.body , " \" ok\" :false" ));
@@ -682,8 +681,8 @@ int main()
682681 vix::note::NoteRouteResponse response =
683682 routes.post (" /api/cells/99/run" );
684683
685- assert (response.status == 500 );
686- assert (! response.ok ());
684+ assert (response.status == 200 );
685+ assert (response.ok ());
687686 assert (response.contentType == " application/json; charset=utf-8" );
688687
689688 assert (contains (response.body , " \" ok\" :false" ));
0 commit comments