I am new to DbFit and Fitnesse using Version 2.0.0-RC5. I have followed the setup instructions exactly as followed on the github tutorial. I have tried many different ways to get it working but end up getting errors.
The tutorial: http://dbfit.github.io/dbfit/docs/getting-started.html
Heres what HelloWorldTest looks like:
!path lib/*.jar
!|dbfit.MySqlTest|
!|Connect|localhost|root|root|dbfit|
!|Query| select 'test' as x|
|x|
|test|
When I run the test I am getting:
Could not find fixture: dbfit.MySqlTest
Could not find fixture: Connect
Could not find fixture: Query
I have looked far and wide for answers with no luck. Any help would be much appreciated. Thanks!
As discussed on this thread in the DbFit forum, your issue can be solved by launching Fitnesse from the unzipped folder:
cd <your_dbfit_folder>
./startFitnesse.sh
Related
there
Has anyone tried any one of the 4 sample codes provided by ST for their Bluenrg-MS evaluation board ?
https://www.st.com/en/wireless-transceivers-mcus-and-modules/bluenrg-ms.html
The sample codes were downloaded from here:
https://www.st.com/en/embedded-software/stsw-stlkt01.html
I've tried to use stm32cubeide, AC6 and atollic truestudio to open the sample projects, but all of them are giving me the error message such as:
An internal error occurred during: "Build Project".
java.lang.NullPointerException
Basically, there are too much unresolved inclusions and variables that it seems to me that the debug/release configuration is not correct. Even 'uint32_t' is unresolved. I've tried the same thing on different PC and getting the same result.
Has any one tried to use these sample codes ? Or is there any other sample codes that are good starting point for this board ?
Thanks.
Eric
As soon as I upgraded to the recent-release STM32CubeIDE 1.0.4 and the STSW-STLKT01_V2.4.0, everything works fine. I guess this is a bug of the old versions.
Desperate mode: Tried many different configs and all failed. I have a browserified + babelified bundle called videomail-client.js here:
https://github.com/binarykitchen/videomail-client/tree/develop/dist
The package.json's main entry of that package is pointing to this file.
Now, when I require() that package from another project within and browserify it, then I see this error from the gulp task using browserify:
[16:26:32] Error: Cannot find module './keys' from '/home/michael-heuberger/code/videomail.io/node_modules/videomail-client/dist'
at /home/michael-heuberger/code/videomail.io/node_modules/browser-resolve/node_modules/resolve/lib/async.js:55:21
at load (/home/michael-heuberger/code/videomail.io/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
at onex (/home/michael-heuberger/code/videomail.io/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
at /home/michael-heuberger/code/videomail.io/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
at FSReqWrap.oncomplete (fs.js:152:21)
Hmnmm, sounds complicated? Let me rephrase. Package videomail-client is browserified. Another project, videomail.io, is requiring it and browserifying all together over again with other packages. That's there it fails.
On a side note, when I run standalone examples using videomail-client.js, it works fine.
I think the problem is that browserify can't resolve the ./keys file. But it should be included in the browserified videomail-client.js package and resolved from there. How can I tell browserify to resolve it the correct way?
Suggestions welcome how I can investigate and fix this best. Thanks!!
The solution has two steps: use browserify's standalone option and the gulp-derequire package. It works now.
This sounds a lot like a problem I ran into a few years ago (and yes, it is tough to describe :) )
I never got an answer but maybe you'll have better luck. The solution I eventually went with was to not attempt to re-browserify already-browserified libraries; I ended up just concatenating it in and minifying the whole bundle afterwards.
I'm trying to package some code up as an ANE, something we've done before in house. However we're currently stuck on an ADT error which I can't seem to wrap my head around.
When running the following from a sh file, I'm getting an error.
Shell script:
ADT="/Applications/air/bin/adt"
NAME="VideoRoll"
AFILE="libVideoRollANE.a"
$ADT -package -target ane $NAME.ane extension.xml -swc $NAME.swc -platform iPhone-ARM -platformoptions platformoptions.xml library.swf $AFILE
Error:
platformoptions.xml is not part of a Mac OS X Native Extensions
framework
All of the files are in the correct place and being clearly picked up by adt, as I'd assume there would be something else I'd be getting back. If you're after the source code, it's an open source library on bitbucket that I've forked and made a couple of changes to. I'm trying to compile it with Adobe AIR SDK 20 to try and fix an issue we're getting but I'm struggling to just build it from the base source right now. The source can be found here: https://bitbucket.org/lostirc/videoroll/src .
Any suggestions would be great, I'm up for trying anything now. I've modified nearly everything I can think of and tried various different orders for the command, it seems if I remove the platformoptions flag and value, then it gives the same error about library.swf, so I'm not sure it's directly related to the platformoptions.xml.
I worked around the problem by running the same command on Windows. This isn't really a solution but a potential workaround for anyone having the same issue. If anyone can post a good answer then I'll accept that, but for now this is the best answer I've got.
I am trying to run acceptance tests on the yii2 advanced app. Out of the box the acceptance tests fail. I will just start with the first problem: I think the routes are wrong and I have no idea where to look to fix them. The error for the about page for example says:
Can't be on page "/frontend/web/index-test.php/site/about":
"/frontend/web/index-test.php/site/signup"
Where did it get this route from?? Of course there is no page there, that route is garbage. i tried putting it in a browser .. nothing .. of course. I would love to step through the testing classes to see what's going on but I can't figure that out either. Anyone have an idea on this? I think if I can get the routes right at least I can get somewhere.
Updated answer:
Make sure that you run php -S localhost:8080from the project root, and not from the test directory!
I just tried that, and got pretty much the same errors as you do.
Original answer:
Out of the box, you will need to do a couple of things before the tests can be run.
yii2-app-advanced tests readme
Install Codeception globally.
Create test db.
Go to tests/codeception/configand look at / edit config.php (see below)
Run migrations: codeception/bin/yii migrate
Fire up a webserver: php -S localhost:8080
Navigate to each of the directories in tests/codeceptionthat you want to test for - like frontend
Run codecept build
Run codecept run
It does run and it does succeed out of the box - provided that you haven't changed any code. :)
If you did change some code, then the tests breaks, and you will have to fix it.
tests/codeception/config/config.php:
'components' => [
'db' => [
'dsn' => 'mysql:host=localhost;dbname=name_of_test_db',
],
Edit:
That route looks fine to me, btw. I guess the issue is that you haven't fired up a webserver before engaging the tests.
You might need to fix your document roots, as described here: Installation Guide
So, as you can see in the title, I am having a problem with my Linkit One. I am using Arduino IDE 1.6.6, and I am using the Linkit One SDK 1.1.17 through the Arduino board's manager. When I compile anything, even a simple bare minimum Arduino program, I get this error:
arm-none-eabi-g++: error: ~My System Path\Temp\build3694385943597424511.tmp/syscalls_mtk.c.o: No such file or directory Error compiling.
I have searched long and hard for an answer to this problem, and I have found nothing. Please inform me if I need to provide extra information.
Thanks, Fiske
I got it to work by editing platform.txt
and adding core/ so that it reads:
{build.path}/core/syscalls_mtk.c.o
instead of
{build.path}/syscalls_mtk.c.o
platform.txt was located in:
/Users/awootton/Library/Arduino15/packages/LinkIt/hardware/arm/1.1.17
Okay: Here is what I did. First of all, I switched to IDE 1.6.5, like you said. Then I followed the tutorial here: https://www.hackster.io/seeyouu/smart-city-bus-network-9f4cb0. FINALLY I got the linkit to work. You have no idea how long that took.
Try v1.6.5 of the ide. Seemed to fix the issue for us!