title: How to print values in tests?
body: <p>I have following code in decl_module</p>
  <pre><code>#[weight = 10_000 + T::DbWeight::get().reads_writes(1,1)]
  pub fn create_deparment(origin, name: Vec&lt;u8&gt;, location: Vec&lt;u8&gt;, detail: Vec&lt;u8&gt;) -&gt; dispatch::DispatchResult {
      let _who = ensure_signed(origin)?;
      let oldcount = DeparmentCount::get();
      debug::info!(&quot;Old Deparment Count: {:?}&quot;, oldcount);
      // print(&quot;Old Deparment Count&quot;);
      Ok(())
  }
  </code></pre>
  <p>This is my test:</p>
  <pre><code>#[test]
  fn create_deparment_test() {
      new_test_ext().execute_with(|| {
          let _result = TemplateModule::create_deparment(Origin::signed(1), &quot;Education&quot;.as_bytes().to_vec(), &quot;India&quot;.as_bytes().to_vec(), &quot;hashcode&quot;.as_bytes().to_vec());
      });
  }
  </code></pre>
  <p>I want to print the debug::info in terminal while running cargo test.</p>
  <pre><code>cargo test -- --nocapture
  </code></pre>
  <p>Is it possible?</p>
  <p>Edit:<br />
  println! is working if you test only using template crate, so one can remove the println! while building the substrate runtime.</p>