TDD for Mises.org

11 views
Skip to first unread message

David Veksler

unread,
Mar 30, 2012, 6:41:01 AM3/30/12
to Mises.org Development
I've started writing unit tests for Mises.org.  I would like to move towards a more TDD design.

Currently my bug detection methodology is to push code to live and wait for the exception handler to send emails.  But this does not verify any business logic, among other issues.

Inline image 1
---
Regards,
David Veksler
+86 186 168 73407

image.png

Stephen Gream

unread,
Mar 30, 2012, 6:54:53 AM3/30/12
to mise...@googlegroups.com
CI might be a good idea if you have a machine somewhere that could do it. We use TeamCity at work, but Jenkins is an open source one I've heard a fair bit about that was built in the same vane as Hudson was for Java http://jenkins-ci.org/
image.png

Stephen Gream

unread,
Mar 30, 2012, 6:56:13 AM3/30/12
to mise...@googlegroups.com
Or maybe it's a fork of Hudson, not 100% clear on the details

David Veksler

unread,
Mar 30, 2012, 7:11:02 AM3/30/12
to mise...@googlegroups.com
I tried to use Jenkins but it did not work right.

The current poor mans CI solution is a scheduled task which runs a batch file every hour


C:\Progra~2\Visual~1\bin\svn update F:\web\Beta
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe F:\web\Beta\MisesWeb.sln /p:configuration="Release"


---
Regards,
David Veksler
+86 186 168 73407



Stephen Gream

unread,
Mar 30, 2012, 7:17:05 AM3/30/12
to mise...@googlegroups.com
I might try setting it up on my laptop tomorrow and letting you know
what happens. Batch scripts are going to be a pain to maintain when
your test cases start building up

David Veksler

unread,
Mar 30, 2012, 11:34:43 PM3/30/12
to Mises.org Development
I need some help writing tests for the media controller:

Inline image 1

---
Regards,
David Veksler
+86 186 168 73407



image.png
image.png

David Veksler

unread,
Mar 31, 2012, 2:49:25 AM3/31/12
to Mises.org Development
Nevermind, I got it.

I just committed unit tests for all the major controllers:



---
Regards,
David Veksler
+86 186 168 73407



image.png
image.png

Stephen Gream

unread,
Mar 31, 2012, 9:58:07 AM3/31/12
to mise...@googlegroups.com
Got this problem trying to checkout the SVN repo. Just thought you should know that I couldn't force it to accept the certificate, either
image.png
image.png
ssl_problems.png

David Veksler

unread,
Mar 31, 2012, 11:20:06 AM3/31/12
to mise...@googlegroups.com
Does it not support self-signed certificates?

I could either run it on port 80 or get a real certificate.  But it should not be necessary.

---
Regards,
David Veksler
+86 186 168 73407



image.png
image.png

Stephen Gream

unread,
Mar 31, 2012, 5:29:12 PM3/31/12
to mise...@googlegroups.com

It should, but apparently the newer versions of gnutls are really strict about self signed certificates (in that they should accept them, but follow a spec to the letter), which is what that --trust-server-cert flag is meant to do. I tried pulling it out with git on windows as well and got the same error, so gave up and went to bed. I'll try with svn on windows today to see if it makes a difference.

image.png
image.png
Reply all
Reply to author
Forward
0 new messages