Testing in Aqueduct 3.0 Pre-Release - dart

I have a hard time figuring out how to test in Aqueduct 3.0 Pre-Release.
I see an example in the Snippets section of the documentation that uses following to connect to an endpoint:
app.client.request("/endpoint").get()
But when I look at the example_test.dart it looks following:
harness.agent.get("/places")
So it seems that there were some changes.
In the "Writing Tests" section of the documentation I can't figure out, into which files or classes the code snippets go.
Also it took me quite a long time to figure out how to run tests:
dart test/example_dart.test
I was searching for "aqueduct test" or something similar.
Is there some more documentation, or a full code example, how to setup a test environment and write tests in 3.0 Pre-Release (with get, put, post, delete)?

The published documentation site is lagging behind, but the documentation has been written. The markdown is available here: https://github.com/stablekernel/aqueduct/blob/docs/3.0/source/docs/testing/tests.md.
It is also worthwhile to install look at the tests in the template projects, especially the larger templates: ‘aqueduct create -t db_and_auth projectname’.

Related

Running karate-gatling tests in distributed mode using docker

I am somewhat new to using docker and the author mentioned that it is possible to run karate-gatling tests using docker for running distributed tests: https://github.com/intuit/karate/wiki/Distributed-Testing#gatling
Can anyone provide me an example that I can use to do this or direct me to github repo if someone already tried this?
The karate author provided a nice example to run web ui tests using docker so I am looking for something similar to this: https://github.com/intuit/karate/tree/master/examples/jobserver
This is actually part of the examples/gatling sample project, and look at the GatlingDockerJobRunner unit test.
I will edit the wiki to make this more clear. Yes, this may not be the best example, please please try it out and we will be happy to incorporate any changes you suggest.
EDIT: more info at this ticket: https://github.com/intuit/karate/issues/1220

Is there a spec document for CCTray?

I'm trying to build a CCTray/CCMenu clone in Electron and want to know if there's a spec document for parsing the XML document? I can get much of it from checking my Travis version, but I'd like to know the actual spec
Our source code sadly has outdated info. A quick search reveals https://github.com/erikdoe/ccmenu/wiki/Multiple-Project-Summary-Reporting-Standard, which claims to have resurrected the "lost" standard.
Yes, the spec for CCTray is available from here: https://cctray.org/v1/

How to get Swagger UI to work based on documentation guide? (even the example)

I am trying to use Swagger UI to document our node.js API, so I went to http://swagger.io/docs/, down to Swagger UI Documentation -> Usage, to find this
Now, this is not the only place that provides these instructions, there are dozens of blogs & tutorials saying the same thing, so that's exactly what I did.
Cloned the repo, went into /dist/ and ran the /dist/index.html and all I get is an empty page with an error:
I'm slowly going crazy now as I can't find anything about it and literally every place I looked just has the same, copied, instructions with nothing else provided (like what could go wrong? you just open a file...)
Any help or explanations are much appreciated!
P.S. for some reason opening the /public/index.html works (mentioned nowhere on the www)
I think this is bug in new version of swagger-UI. This is fresh release and they are still modifying and fixing bugs.
Look here: Swagger-ui cannot access JS scripts. This seems to be similar problem, maybe it will help you.

WebSharper 3.4 with working HelloWorld example?

The current HelloWorld example on websharper.com doesn't work anymore due to changes made in WebSharper 3.4. It now requires some attributes and other stuff to compile correctly.
I am just getting started with WebSharper and I would like to see a minimum (html+javascript client-side hello world) example that works. Any help would be appreciated!
The samples on the website use Html.Client (the HTML language soon to be retired in favor of UI.Next), so to run them you need to start from a template that isn't based on UI.Next.
Following the instructions here, I was able to run them without any issues, extra attributes, etc.

Sling Testing Tools Selector configuration

AEM 5.6.1
I am trying to run some server side testing using the sling testing tools. I have deployed the junit.core bundle and I can navigate to the JUnitServlet at /system/sling/junit/
When I hit this url there are tests visible from multiple bundles, I don't want to run the adobe ones but I can't figure out how to filter package names past the period using the url.
e.g
Available tests:
com.adobe.stuff
com.my.stuff
I tried:
/system/sling/junit/com/ <--works but isn't detailed enough
/system/sling/junit/com.my <-- breaks unsurprisingly
/system/sling/junit/com%2Emy <-- also breaks with 501
Is there an expected way of doing this? I couldn't find any documentation about this and the javadoc didn't really help either.
/system/sling/junit/com.my.html should work - you are right that the /system/sling/junit servlet should make this more explicit. There are examples of running such tests from proxy JUnit tests in the Sling codebase, see SlingServerSideTest for example.

Resources