Dojo Objective Harness is a unit testing framework developed by the Dojo Toolkit Community.
Questions tagged [doh]
42 questions
15
votes
3 answers
How to run Dojo DOH unit-tests through Jenkins?
Has anyone tried integrating Dojo DOH unit-tests with Jenkins?
I'd like to do the following, but don't want to reinvent it if this has already been done. So, I'm thinking:
Kick off the DOH-tests from a post-build step in Jenkins and wait for the…

Yuriy Nemtsov
- 3,869
- 4
- 30
- 44
4
votes
2 answers
Unit test in dojo
I'm starting with dojo. Coming from GWT and Backbone, I've worked with junit and jasmine to test my application. After taking a lock on dojo DOH testing framework, I wonder if its worth to use it or would it be better to stay with jan external…

Andreas Köberle
- 106,652
- 57
- 273
- 297
4
votes
3 answers
How to test non-dojo javascript code with doh?
doh is the dojo unit-testing framework.
I am trying to use doh to test a non-dojo javascript code, but i am facing the problem that doh seems intrusive and oblige me to use dojo.provide() in the tested js file(and the corresponding dojo.require() in…

François Wauquier
- 568
- 3
- 9
4
votes
4 answers
DOH command-line testing of JavaScript functions outside of the Dojo root
I'm trying to run DOH from dojo-1.3.2 to test simple Javascript functions from command-line. However, I can't seem to get anything to run and the net seems to be devoid of DOH command-line documentation.
Ideally the structure I would like is:
Tests…

memstomp
- 43
- 5
4
votes
2 answers
What happened to Dojo DOH?
The Dojo Toolkit used to come with a testing facility called "Doh". It was in the /utils directory.
Now when you download dojo-release-1.3.2 the /utils directory is nowhere to be found.
Is Doh dead and gone?

Mark Lutton
- 6,959
- 7
- 41
- 57
3
votes
2 answers
How to locally test cross-domain builds?
Using the dojo toolkit, what is the proper way of locally testing code that will be executed as cross-domain, without making the actual build?
As it appears, there are three possible options (each, with their own drawbacks):
Using local (non xd)…

Yuriy Nemtsov
- 3,869
- 4
- 30
- 44
2
votes
4 answers
How do I use curl to resolve a dns over https (DOH) query?
I am running the latest version of curl (7.76.1).
I have set up my own dnsdist server / doh proxy which queries to a bind9 resolver I set up as well.
What is the right syntax to get curl to return only the resolved IPs?
When I run the following, All…

Dave
- 727
- 1
- 9
- 20
2
votes
2 answers
How to check if function throw an error in DOH?
I'm trying to check if a function throws error, and made this:
define([
'doh/runner',
'app/Obj'
], function(
doh,
Obj
){
doh.register('Test Obj exception', [
function () {
try {
…

IvanM
- 2,913
- 2
- 30
- 30
1
vote
1 answer
How to enable DoH settings in chrome driver in Selenium
I am pretty new to using Selenium and it's webdrivers. I have a need to enable DoH (dns over https) together with an option for selecting which DoH server to connect to in chrome driver in Selenium.
I have been researching online and have gone…

fbw
- 11
- 1
1
vote
0 answers
doh robot unavailable after running previous instance
I grabbed the latest dojo code to play around with the DOH robot. I have installed two exact copies of the dojo/dijit/dojox/util package: one on the root level of my server and one under /js/.
localhost/dojo
/dijit
/dojox
…

lampShaded
- 9,215
- 2
- 18
- 12
1
vote
1 answer
how to config DOH with coreDNS?
@ https://coredns.io/community/.
I can see the following configuration on the official website, but this does not provide HTTPS service, it is a forwarding.
I can't find how to configure the doh.
And for DNS over HTTP/2 (DoH)…

sanyo ye
- 11
- 2
1
vote
1 answer
Javascript Testing framework similar to dojo DOH
Is there any framework in javascript similar to dojo DOH?
I am looking for testing framework which is browser-based like dojo DOH, it provide support for both browsers and JS runtime environment.
In simple words, I am looking for:
A simple…

Mithlesh Kumar
- 748
- 7
- 16
1
vote
2 answers
Dojo Testing Frameworks: Dojo Objective Harness vs Intern
I have recently adopted the Dojo Toolkit as my first JavaScript library, and am at the threshold of technical debt where I need to begin testing. I first looked into the Dojo Object Harness (DOH) unit test framework, and have learned the most by…

Davis Dulin
- 629
- 5
- 9
1
vote
2 answers
Testing Custom Modules with DOH
I'm trying to build some unit tests for an old JS file/module that is out of my control.
The JS module is built using the following pattern...
var myModule = {
myMethod:function() {
}
};
I am then trying to build a DOH test harness to test…

fatlog
- 1,182
- 2
- 14
- 28
1
vote
1 answer
How to run a server url in a Dojo DOH test
The Dojo DOH examples and tutorials do not seem to cover this case. I have a server url for which I want to write tests. I want the target page to show in the TestPage tab and then have multiple tests run against it. The closest example I could find…

Al B
- 101
- 2
- 4