When you figure out an esoteric thing
-
...there is no one to celebrate with because no one else cares about it. It's just a thing you had to figure out to get a thing done. I just figured out how to use JCov (Java Coverage tool which is ancient). I could only find the source for JCov so I had to build it. To build it I had to get Ant (build tool) installed and figure out how to use. And I needed some additional Jars which were difficult to even know where to get. I felt like I was downloading jars off some guys server in his garage but it was actually oracle (Index of /repositories/releases/org/ow2/asm/asm/7.0[^]) I also had to learn how to use JUnit (unit test framework). So you have to 1) build your targets 2) build your target test classes that use the targets 3) add instrumentation to the class files using JCov cryptic commands 4) run the tests against your targets while invoking another JCov cryptic command which will watch the junit tests to see what is covered (outputs report.xml) 5) create a html report using the JCOv cryptic command which uses the result.xml Here's a snapshot of the coverage report[^] on my very small Calculator code. Check out the commands I had to run to get to that:
@echo off
REM ####################################################
REM Prework -- clean up old files
REM remove the report directory and all files
rmdir /S/Q report
REM remove all generated xml files
del /Q *.xml
REM Re-compile targets to insure they have all code changes
javac -cp .;junit/* Calculator.java CalculatorTest.java
REM #####################################################
@echo on
REM 1) Create instrumentation for target class -- creates template.xml
java -jar C:\Users\target\DevTools\jcov_3.0\jcov.jar Instr Calculator.classREM 2) Run the code with instrumentation -- creates result.xml
java -cp .;C:\Users\target\DevTools\jcov_3.0\jcov_file_saver.jar;junit/* org.junit.runner.JUnitCore CalculatorTestREM 3) generate report from result.xml
java -jar C:\Users\target\DevTools\jcov_3.0\jcov.jar RepGen result.xmlBut, it's all esoteric and I'll forget it when the project is over. :rolleyes:
-
...there is no one to celebrate with because no one else cares about it. It's just a thing you had to figure out to get a thing done. I just figured out how to use JCov (Java Coverage tool which is ancient). I could only find the source for JCov so I had to build it. To build it I had to get Ant (build tool) installed and figure out how to use. And I needed some additional Jars which were difficult to even know where to get. I felt like I was downloading jars off some guys server in his garage but it was actually oracle (Index of /repositories/releases/org/ow2/asm/asm/7.0[^]) I also had to learn how to use JUnit (unit test framework). So you have to 1) build your targets 2) build your target test classes that use the targets 3) add instrumentation to the class files using JCov cryptic commands 4) run the tests against your targets while invoking another JCov cryptic command which will watch the junit tests to see what is covered (outputs report.xml) 5) create a html report using the JCOv cryptic command which uses the result.xml Here's a snapshot of the coverage report[^] on my very small Calculator code. Check out the commands I had to run to get to that:
@echo off
REM ####################################################
REM Prework -- clean up old files
REM remove the report directory and all files
rmdir /S/Q report
REM remove all generated xml files
del /Q *.xml
REM Re-compile targets to insure they have all code changes
javac -cp .;junit/* Calculator.java CalculatorTest.java
REM #####################################################
@echo on
REM 1) Create instrumentation for target class -- creates template.xml
java -jar C:\Users\target\DevTools\jcov_3.0\jcov.jar Instr Calculator.classREM 2) Run the code with instrumentation -- creates result.xml
java -cp .;C:\Users\target\DevTools\jcov_3.0\jcov_file_saver.jar;junit/* org.junit.runner.JUnitCore CalculatorTestREM 3) generate report from result.xml
java -jar C:\Users\target\DevTools\jcov_3.0\jcov.jar RepGen result.xmlBut, it's all esoteric and I'll forget it when the project is over. :rolleyes:
So write a quick article or tip - it can remind you, and maybe help some other poor sod with the same problem. Mind you, I've found some of my own tips when googling something I needed to do but forgotten I'd written about ... :-O
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
So write a quick article or tip - it can remind you, and maybe help some other poor sod with the same problem. Mind you, I've found some of my own tips when googling something I needed to do but forgotten I'd written about ... :-O
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
OriginalGriff wrote:
So write a quick article or tip - it can remind you, and maybe help some other poor sod with the same problem.
But, what about my laziness...? :-O
OriginalGriff wrote:
I've found some of my own tips when googling something I needed to do but forgotten I'd written about ...
I've done that too. It's really funny. And, actually, one of the main [only] reasons I joined StackOverflow and contribute is so I can find my answers later. Yes, I'm serious. :laugh: If I just put the info in a google doc or on my local disk somewhere I'd never find it. :rolleyes:
-
OriginalGriff wrote:
So write a quick article or tip - it can remind you, and maybe help some other poor sod with the same problem.
But, what about my laziness...? :-O
OriginalGriff wrote:
I've found some of my own tips when googling something I needed to do but forgotten I'd written about ...
I've done that too. It's really funny. And, actually, one of the main [only] reasons I joined StackOverflow and contribute is so I can find my answers later. Yes, I'm serious. :laugh: If I just put the info in a google doc or on my local disk somewhere I'd never find it. :rolleyes:
raddevus:
what about my laziness...?
Nothing I can do about that ... but think of it as investing in your future laziness? :laugh:
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
OriginalGriff wrote:
So write a quick article or tip - it can remind you, and maybe help some other poor sod with the same problem.
But, what about my laziness...? :-O
OriginalGriff wrote:
I've found some of my own tips when googling something I needed to do but forgotten I'd written about ...
I've done that too. It's really funny. And, actually, one of the main [only] reasons I joined StackOverflow and contribute is so I can find my answers later. Yes, I'm serious. :laugh: If I just put the info in a google doc or on my local disk somewhere I'd never find it. :rolleyes:
raddevus wrote:
If I just put the info in a google doc or on my local disk somewhere I'd never find it.
That's why so many of my "projects" include a text file
howto
So as long as I can remember that I did something similar already, ...Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
-
OriginalGriff wrote:
So write a quick article or tip - it can remind you, and maybe help some other poor sod with the same problem.
But, what about my laziness...? :-O
OriginalGriff wrote:
I've found some of my own tips when googling something I needed to do but forgotten I'd written about ...
I've done that too. It's really funny. And, actually, one of the main [only] reasons I joined StackOverflow and contribute is so I can find my answers later. Yes, I'm serious. :laugh: If I just put the info in a google doc or on my local disk somewhere I'd never find it. :rolleyes:
Ah, I know that issue well. I have written in depth papers on subjects in the past, with the intention of using them as reference material at a future date. Then I either forget that a I wrote them or forget were I stored them. Either way, it is a common issue. Now if I just had the time and the wherewithal all to write a library program to keep things organize, I would probably be good to go.
INTP "Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra "I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone
-
Ah, I know that issue well. I have written in depth papers on subjects in the past, with the intention of using them as reference material at a future date. Then I either forget that a I wrote them or forget were I stored them. Either way, it is a common issue. Now if I just had the time and the wherewithal all to write a library program to keep things organize, I would probably be good to go.
INTP "Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra "I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone
I created a general purpose information database I can put anything into I want (except pictures in an easy manner). It will even generate bibliographic reference citations if I go so far as to put the book, magazine, or other reference information in. And all I've used it for lately is how to use
mklink
! :laugh: But since I had to look it up several times before, that's enough!The Science of King David's Court | Object Oriented Programming with C++
-
OriginalGriff wrote:
So write a quick article or tip - it can remind you, and maybe help some other poor sod with the same problem.
But, what about my laziness...? :-O
OriginalGriff wrote:
I've found some of my own tips when googling something I needed to do but forgotten I'd written about ...
I've done that too. It's really funny. And, actually, one of the main [only] reasons I joined StackOverflow and contribute is so I can find my answers later. Yes, I'm serious. :laugh: If I just put the info in a google doc or on my local disk somewhere I'd never find it. :rolleyes:
raddevus wrote:
But, what about my laziness...?
An even better reason to write it down. You'll thank yourself next time you need it. :)
Wrong is evil and must be defeated. - Jeff Ello
-
raddevus wrote:
If I just put the info in a google doc or on my local disk somewhere I'd never find it.
That's why so many of my "projects" include a text file
howto
So as long as I can remember that I did something similar already, ...Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
-
...there is no one to celebrate with because no one else cares about it. It's just a thing you had to figure out to get a thing done. I just figured out how to use JCov (Java Coverage tool which is ancient). I could only find the source for JCov so I had to build it. To build it I had to get Ant (build tool) installed and figure out how to use. And I needed some additional Jars which were difficult to even know where to get. I felt like I was downloading jars off some guys server in his garage but it was actually oracle (Index of /repositories/releases/org/ow2/asm/asm/7.0[^]) I also had to learn how to use JUnit (unit test framework). So you have to 1) build your targets 2) build your target test classes that use the targets 3) add instrumentation to the class files using JCov cryptic commands 4) run the tests against your targets while invoking another JCov cryptic command which will watch the junit tests to see what is covered (outputs report.xml) 5) create a html report using the JCOv cryptic command which uses the result.xml Here's a snapshot of the coverage report[^] on my very small Calculator code. Check out the commands I had to run to get to that:
@echo off
REM ####################################################
REM Prework -- clean up old files
REM remove the report directory and all files
rmdir /S/Q report
REM remove all generated xml files
del /Q *.xml
REM Re-compile targets to insure they have all code changes
javac -cp .;junit/* Calculator.java CalculatorTest.java
REM #####################################################
@echo on
REM 1) Create instrumentation for target class -- creates template.xml
java -jar C:\Users\target\DevTools\jcov_3.0\jcov.jar Instr Calculator.classREM 2) Run the code with instrumentation -- creates result.xml
java -cp .;C:\Users\target\DevTools\jcov_3.0\jcov_file_saver.jar;junit/* org.junit.runner.JUnitCore CalculatorTestREM 3) generate report from result.xml
java -jar C:\Users\target\DevTools\jcov_3.0\jcov.jar RepGen result.xmlBut, it's all esoteric and I'll forget it when the project is over. :rolleyes:
That's what BLOGS are for! LOL
-
Peter_in_2780 wrote:
That's why so many of my "projects" include a text file
howto
So as long as I can remember that I did something similar alreadyThat's actually a great idea. thx :thumbsup:
find ~ -name howto
orlocate howto
Waaay too easy!Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
-
...there is no one to celebrate with because no one else cares about it. It's just a thing you had to figure out to get a thing done. I just figured out how to use JCov (Java Coverage tool which is ancient). I could only find the source for JCov so I had to build it. To build it I had to get Ant (build tool) installed and figure out how to use. And I needed some additional Jars which were difficult to even know where to get. I felt like I was downloading jars off some guys server in his garage but it was actually oracle (Index of /repositories/releases/org/ow2/asm/asm/7.0[^]) I also had to learn how to use JUnit (unit test framework). So you have to 1) build your targets 2) build your target test classes that use the targets 3) add instrumentation to the class files using JCov cryptic commands 4) run the tests against your targets while invoking another JCov cryptic command which will watch the junit tests to see what is covered (outputs report.xml) 5) create a html report using the JCOv cryptic command which uses the result.xml Here's a snapshot of the coverage report[^] on my very small Calculator code. Check out the commands I had to run to get to that:
@echo off
REM ####################################################
REM Prework -- clean up old files
REM remove the report directory and all files
rmdir /S/Q report
REM remove all generated xml files
del /Q *.xml
REM Re-compile targets to insure they have all code changes
javac -cp .;junit/* Calculator.java CalculatorTest.java
REM #####################################################
@echo on
REM 1) Create instrumentation for target class -- creates template.xml
java -jar C:\Users\target\DevTools\jcov_3.0\jcov.jar Instr Calculator.classREM 2) Run the code with instrumentation -- creates result.xml
java -cp .;C:\Users\target\DevTools\jcov_3.0\jcov_file_saver.jar;junit/* org.junit.runner.JUnitCore CalculatorTestREM 3) generate report from result.xml
java -jar C:\Users\target\DevTools\jcov_3.0\jcov.jar RepGen result.xmlBut, it's all esoteric and I'll forget it when the project is over. :rolleyes:
> ...there is no one to celebrate with because no one else cares about it. sad but true